package net.oschina.app.testcase.versioncheck;

import android.test.ActivityInstrumentationTestCase2;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.robotium.solo.Solo;

import net.oschina.app.AppStart;
import net.oschina.app.BasicTestCase;

/**
 * Created by Aaron on 2017/5/26.
 */

public class VersionCheck extends BasicTestCase {

    @Override
    public void setUp(boolean isNeedLogin) throws Exception {
        super.setUp(true);
    }

    public void testName() throws Exception {
        helper.getPageNavigation().clickMyTab();
        helper.getPageMyTab().clickLoginIcon();;
        helper.getPageLogin().login("735723619@qq.com","12345678");
        helper.getPageMyTab().clickSettingsIcon();
        helper.getPageSettings().clickAbout();
        String expectedValue = "v2.9.6(1609281026)";
        String actualValue = helper.getPageAbout().getVersion();
        assertEquals(expectedValue,actualValue);
    }
}
